package org.fastsyncer.common.constant;

public class CommonConstant {
	
	//server
	public static final String SERVER_PORT = "fastsyncer.server.port";
	public static final String SERVER_CONTEXT = "fastsyncer.server.context";
	public static final String SERVER_WEB_PATH = "fastsyncer.web.path";
	public static final String SERVER_ROOT = "fastsyncer.root";
	public static final String SERVER_ROOT_DESCRIPTOR = "fastsyncer.root.descriptor";
	
	//************************************* manager *************************************
	public static final String MANAGER_MIGRATE_NUMBER = "fastsyncer.manager.migrate.max.number";
	/**
	 * 支持同时处理数据迁移任务并发数
	 */
	public static final String MANAGER_SYNC_NUMBER = "fastsyncer.manager.sync.max.number";
	/**
	 * 存储路径
	 */
	public static final String MANAGER_STORE_PATH = "fastsyncer.manager.store.path";
	/**
	 * 记录同步失败最大条数，超过就会覆盖
	 */
	public static final String MANAGER_STORE_MAX_ROW = "fastsyncer.manager.store.max.number";

	//************************************* worker *************************************
	/**
	 * worker单次任务最多执行条数
	 */
	public static final String WORKER_TASK_MAX_NUMBER = "fastsyncer.worker.task.max.number";
	/**
	 * worker每次批量执行条数
	 */
	public static final String WORKER_BATCH_NUMBER = "fastsyncer.worker.batch.number";
	/**
	 * worker线程数
	 */
	public static final String WORKER_THREAD_NUMBER = "fastsyncer.worker.thread.number";
	
	//************************************* rest *************************************
	/**
	 * 允许访问的IP地址,如果有多个请使用“,”符合拼接,例如：127.0.0.1,10.238.206.222
	 */
	public static final String REST_APPROVAL_IP = "fastsyncer.rest.ws.approval.ips";
	
}
